cmake_minimum_required(VERSION 2.8.12)
project(ide)

set(CMAKE_CXX_STANDARD 11)
add_definitions(-DWITH_DOM  -DWITH_OPENSSL)
include_directories(../onvif/ ../comm/)
if(WIN32)
    message(STATUS "Now is windows")
    include_directories(../ffmpeg-win32-pc/include ../openssl-win32-pc/include)
    link_directories("../ffmpeg-win32-pc/lib" "../openssl-win32-pc/lib")
ELSEIF (UNIX)
    MESSAGE(STATUS "Now is UNIX-like OS's.")
    include_directories(../ffmpeg-linux-pc/include ../openssl-linux-pc/include)
    link_directories("../ffmpeg-linux-pc/lib" "../openssl-linux-pc/lib")
endif()

FILE(GLOB SOURCE_FILES "../onvif/*.c" "../*.cpp" "../comm/*.c")



add_executable(onvif_test ${SOURCE_FILES})
target_link_libraries(onvif_test pthread ssl crypto dl)